<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>复合布局</title>
    <style>
        header, main, footer {
            width: 1000px;
            margin: 0 auto;
        }
        header {
            height: 100px;
            background-color: silver;
        }
        main {
            height: 500px;
            background-color: #bfa;
            margin: 10px auto;
        }
        nav, article, aside {
            float: left;
            height: 100%;
        }
        nav {
            width: 200px;
            height: 100%;
            background-color: yellow;
        }
        article {
            width: 590px;
            height: 100%;
            background-color: orange;
            /*设置间隔后，三个元素的宽度和大于父元素的宽度了，所以需要修改width*/
            margin: auto 5px;
        }
        aside {
            width: 200px;
            height: 100%;
            background-color: pink;
        }


        footer {
            height: 150px;
            background-color: tomato;
        }

    </style>
</head>
<body>
    <header>

    </header>

    <main>
<!--        左侧导航-->
        <nav></nav>

<!--        中间内容-->
        <article></article>

<!--        右边的边栏-->
        <aside></aside>
    </main>

    <footer>

    </footer>
</body>
</html>